#include "TransitionToPlace.h"

pn::TransitionToPlace::TransitionToPlace()
{
	setId("unknown-id");
}

pn::TransitionToPlace::~TransitionToPlace()
{
	
}

std::string pn::TransitionToPlace::getId()
{
	return mId;
}

void pn::TransitionToPlace::setId(const std::string& rId)
{
	if (!rId.empty()) mId.assign(rId);
	else mId = "unknown-id";
}

const pn::Transition* pn::TransitionToPlace::getTransitionFrom()
{
	return mTransitionFrom;
}

void pn::TransitionToPlace::setTransitionFrom(const Transition* pTransitionFrom)
{
	mTransitionFrom = pTransitionFrom;
}

const pn::Place* pn::TransitionToPlace::getPlaceTo()
{
	return mPlaceTo;
}

void pn::TransitionToPlace::setPlaceTo(const Place* pPlaceTo)
{
	mPlaceTo = pPlaceTo;
}
